package com.sky.service;

import com.sky.dto.AddressBookAddDOT;
import com.sky.dto.AddressBookSetDefaultDTO;
import com.sky.dto.AddressBookUpdateDOT;
import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    List<AddressBook> list();

    void add(AddressBookAddDOT dot);

    AddressBook selectById(String id);

    void update(AddressBookUpdateDOT dto);

    void setDefault(AddressBookSetDefaultDTO dto);

    void deleteById(Long id);
}
